package com.ruoyi.hr.mapper.salaryadmin.salaryopen;


import com.ruoyi.hr.domain.Authority;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SalaryOpenMapper {

    List<Map<String, Object>> findData(@Param("map") Map map, @Param("sql") String sql, @Param("authorities") List<Authority> authorities, @Param("isAdmin") int isAdmin);

    /**
     * 获取所有历史数据
     *
     * @param map
     * @param authorities
     * @param isAdmin
     * @return
     */
    List<Map<String, Object>> findDataHistory(@Param("map") Map map, @Param("authorities") List<Authority> authorities, @Param("isAdmin") int isAdmin);

    /**
     * 执行存储过程
     */
    String executeProcedure(@Param("sql") String sql);

    /**
     * 根据peid查人名
     */
    String findNameByPeid(String peid);

    int updateSalary(Map map);

    int countSalary(Map map);

    int insertSalary(Map map);

}
